package ua.races.dom.analyzerDirector.decoratedAnalyzer;

import ua.races.dom.analyzerDirector.ClientDocumentAnalyzer;
import org.w3c.dom.Element;
import ua.races.vo.Client;
import java.util.ArrayList;
import java.util.List;

public class DecoratedClientDocumentAnalyzer extends ClientDocumentAnalyzer {

    private List<Client> clients = new ArrayList<Client>();
    @Override
    public List<Client> getEntities() {
        return clients;
    }

    @Override
    public void buildList(Element root) {
        super.buildList(root);
        clients.addAll(entities);
    }
}
